#ifndef HINTDIALOG_H
#define HINTDIALOG_H

#include <QWidget>
#include <QDialog>

namespace Ui {
class HintDialog;
}

enum HintDialogType {
    HintDialogType_Null = 0,
    HintDialogType_Hint,
    ModifyPatientUi_GoHome,
    ModifyPatientUi_GoBack,
    ModifyPatientUi_Apply,
    ModifyPatientUi_Modify,
    PatientInfoUi_Delete,
    McuWorker_SystemShutdown,
    SystemSettingUi_QuitLogoin
};

class HintDialog : public QDialog
{
    Q_OBJECT

public:
    static HintDialog* getInstance();
    void setInfo(QString info, HintDialogType type);

private:
    explicit HintDialog(QWidget *parent = 0);
    ~HintDialog();

protected:
    void showEvent(QShowEvent *)override;
    void changeEvent(QEvent* e);
private slots:
    void on_no_clicked();
    void on_ok_clicked();

signals:
    void ModifyPatientUi_HintDialog_Signal(int type);
    void PatientInfoUi_HintDialog_Signal(int type);
    void McuWorker_SystemShutdown_Signal();
    void SystemSettingUi_QuitLogoin_Signal();

private:
    Ui::HintDialog *ui;
    HintDialogType g_type = HintDialogType_Null;
};

#endif // HINTDIALOG_H
